﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using TBlog.Web.Models;

namespace TBlog.Web.Service
{
    public interface IBaseService<T> where T : BaseEntity
    {
        int Add(T Entity);
        int Update(T Entity);
        int Delete(int ID);
        T GetByID(int ID);
        IQueryable<T> GetAll();
        IDictionary<string, object> GetJsonMessage(bool success,string data,string message); 
    }
}